<?php

namespace pmvc\mvc\controller;

use pmvc\mvc\Controller;
use pmvc\mvc\Request;
use pmvc\mvc\Response;

class FourOhFourController
	implements Controller {
	
	/**
	 * {@inheritDoc}
	 */
    public function handleRequest(Request $request, Response $response) {
    	$response->setStatus(Response::STATUS_NOT_FOUND, "Not Found");
    	$response->getStream()->write("
	    	<html>
	    	    <head>
	    	        <title>Page Not Found: ".$request->getRequestedUrl()."</title>
	    	    </head>
		        <body>
		            <h1>The page requested was not found</h1>
		            <p>
		                The page that you have requestd (".$request->getRequestedUrl().")
		                was not found.  If you feel you have reached this page in error please
		                try your request agian.
		            </p>
		        </body>
	    	</html>
    	");
    }
	
}

?>